]> dgit.raspbian.org Git - emacs.git/log
emacs.git
2 years agoAdd tests for `kill-whole-line' (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:58:24 +0000 (15:58 +0200)]
Add tests for `kill-whole-line' (bug#65734)

* test/lisp/simple-tests.el (simple-test-point-tag):
(simple-test-mark-tag):
(simple-test--set-buffer-text-point-mark):
(simple-test--get-buffer-text-point-mark): Add helper functions used by
the tests.
(kill-whole-line-invisible):
(kill-whole-line-read-only):
(kill-whole-line-after-other-kill):
(kill-whole-line-buffer-boundaries):
(kill-whole-line-line-boundaries): Add tests for `kill-whole-line'.

2 years agokill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)
Sebastian Miele [Wed, 19 Jun 2024 13:48:59 +0000 (15:48 +0200)]
kill-whole-line: Honor visibility; fix kill-ring when read-only (bug#65734)

* lisp/simple.el (kill-whole-line): Use visibility state before
performing any edits as reference instead of expecting that visibility
cannot change.  First of the two calls to `kill-region' may trigger
`after-change-functions' that might alter the visibility state.
Make sure that we populate the `kill-ring' with the contents of the
whole line when buffer is in `read-only-mode'.

2 years ago* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.
Juri Linkov [Thu, 27 Jun 2024 06:52:06 +0000 (09:52 +0300)]
* lisp/hi-lock.el (hi-lock-file-patterns-policy): Add value 'always'.

(hi-lock-mode): Update docstring.
(hi-lock-find-patterns): Return t for value 'always'.
(hi-lock-revert-buffer-rehighlight): Rewrite to correctly handle
all possible cases (bug#57534).

2 years ago* lisp/progmodes/xref.el (xref-revert-buffer-restore-point): New function.
Juri Linkov [Thu, 27 Jun 2024 06:42:34 +0000 (09:42 +0300)]
* lisp/progmodes/xref.el (xref-revert-buffer-restore-point): New function.

(xref--xref-buffer-mode): Add xref-revert-buffer-restore-point
to revert-buffer-restore-functions (bug#71466).

2 years agoUse 'revert-function' in *xref* buffer
Eshel Yaron [Wed, 26 Jun 2024 16:51:32 +0000 (18:51 +0200)]
Use 'revert-function' in *xref* buffer

* lisp/progmodes/xref.el (xref--xref-buffer-mode-map): Cease
binding 'g' to 'xref-revert-buffer'.
(xref--xref-buffer-mode): Set 'revert-buffer-function' to...
(xref--revert-buffer): ...this.  New function, renamed from...
(xref-revert-buffer): ...this.  Make it an alias of
'revert-buffer'.
* etc/NEWS: Announce it.
* doc/emacs/maintaining.texi (Xref Commands): Update docs.

2 years agoPrevent crashes and related issues if initial activity is destroyed on Android
Po Lu [Thu, 27 Jun 2024 03:06:59 +0000 (11:06 +0800)]
Prevent crashes and related issues if initial activity is destroyed on Android

* java/org/gnu/emacs/EmacsWindow.java
(EmacsWindow) <initialWindowCreated>: New variable.
(EmacsWindow): If the initial frame has not yet been created,
set attachmentToken to -1.

* java/org/gnu/emacs/EmacsWindowManager.java (registerWindow):
When the window's attachment token is -1 (i.e., it is the
default window), start EmacsActivity rather than
EmacsMultitaskActivity.  Catch exceptions around startActivity.

2 years agoDoc fix in 'php-ts-mode'
Vincenzo Pupillo [Tue, 25 Jun 2024 08:37:40 +0000 (10:37 +0200)]
Doc fix in 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el
(php-ts-mode--custom-html-font-lock-settings): Doc fix.  (Bug#71759)

2 years agoAvoid compiler warnings in the Cygwin-w32 build
Ken Brown [Wed, 26 Jun 2024 19:57:39 +0000 (15:57 -0400)]
Avoid compiler warnings in the Cygwin-w32 build

* src/w32fns.c [DEFAULT_IMAGE_BASE]: Don't define on Cygwin.
* src/cygw32.h (w32_get_resource): Add prototype.  (Bug#71786)

2 years agoAdd new face 'widget-unselected' to wid-edit.el
Stephen Berman [Wed, 26 Jun 2024 06:42:19 +0000 (08:42 +0200)]
Add new face 'widget-unselected' to wid-edit.el

* doc/misc/widget.texi (Customization): Document it.

* etc/NEWS: Announce 'widget-unselected' face.

* lisp/wid-edit.el (widget-unselected): New face.
(widget-specify-unselected, widget-specify-selected): New functions.
(widget-checkbox-action, widget-checklist-add-item)
(widget-radio-add-item, widget-radio-value-set)
(widget-radio-action): Use them.

2 years agoAlways perform Eshell process cleanup runs in the Eshell buffer
Jim Porter [Wed, 26 Jun 2024 04:39:35 +0000 (21:39 -0700)]
Always perform Eshell process cleanup runs in the Eshell buffer

Previously, some code executed in a timer, which could execute in the
wrong buffer, leading to a hang.

* lisp/eshell/esh-proc.el (eshell-sentinel): Use 'with-current-buffer'
in the timer function.

* test/lisp/eshell/esh-proc-tests.el (eshell-test-value): New variable.
(esh-proc-test/sentinel/change-buffer): New test.

(cherry picked from commit da4bc5c9274a6705501e24fb8f2984f5bf5fe099)

2 years agoAvert crash in store_mode_line_string on Android 5.0 and earlier
Po Lu [Wed, 26 Jun 2024 04:08:55 +0000 (12:08 +0800)]
Avert crash in store_mode_line_string on Android 5.0 and earlier

* src/xdisp.c (store_mode_line_string)
[__ANDROID_API__ < 22]: Call strlen on STRING if the limit
would otherwise be SIZE_MAX, or if the address of the string
is within PRECISION bytes of UINTPTR_MAX, in which case it
cannot possibly be larger than PRECISION.

2 years agoUse HarfBuzz in Cygwin-w32 build
Ken Brown [Tue, 25 Jun 2024 15:30:08 +0000 (11:30 -0400)]
Use HarfBuzz in Cygwin-w32 build

* src/w32uniscribe.c (syms_of_w32uniscribe_for_pdumper) [CYGWIN]:
Use cygharfbuzz-0.dll as HarfBuzz DLL name instead of
libharfbuzz-0.dll. (Bug#71766)

2 years ago; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.
Eli Zaretskii [Tue, 25 Jun 2024 13:42:47 +0000 (16:42 +0300)]
; * src/buffer.c (syms_of_buffer) <mode-line-format>: ASCIIfy.

2 years ago; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.
Yuan Fu [Tue, 25 Jun 2024 02:27:54 +0000 (19:27 -0700)]
; * lisp/treesit.el (treesit--syntax-propertize-start): Fix doc.

(cherry picked from commit 2ba39a30bf4fbe90b5b5e16a50dc7090a42b759b)
(Bug#71753)

2 years agoFix tabbing between widgets (bug#70594)
Stephen Berman [Tue, 25 Jun 2024 10:38:03 +0000 (12:38 +0200)]
Fix tabbing between widgets (bug#70594)

* lisp/wid-edit.el (widget-move): Don't error when tabbing in a
buffer with only one active widget and 'widget-skip-inactive'
enabled.  Improve code by handling forward and backward movement
in a single loop.

2 years ago; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize
Philip Kaludercic [Mon, 24 Jun 2024 20:15:25 +0000 (22:15 +0200)]
; * lisp/which-key.el (which-key-dont-use-unicode): Add :initialize

This fixes the change from 768e92b9, which accidentally would call
'custom-reevaluate-setting' on user options before they were registered,
initialising their default value to nil.  When the 'defcustom'
expressions were evaluated later on, they were not properly initialised
as their variables were already bound to some value (nil).

https://lists.gnu.org/archive/html/emacs-devel/2024-06/msg00825.html

2 years ago* lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo.
Po Lu [Tue, 25 Jun 2024 04:52:23 +0000 (12:52 +0800)]
* lisp/touch-screen.el (touch-screen-inhibit-drag): Another typo.

2 years agoFix rescaling of images via 'text-scale-mode' in EWW
Jim Porter [Sun, 23 Jun 2024 23:59:00 +0000 (16:59 -0700)]
Fix rescaling of images via 'text-scale-mode' in EWW

* lisp/net/eww.el (eww--rescale-images): Handle a :scale of 'default'
(bug#71741).

(cherry picked from commit 3abcfe013d809a8194f5158877fd43f11d714fd5)

2 years ago* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo.
Po Lu [Tue, 25 Jun 2024 04:27:08 +0000 (12:27 +0800)]
* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo.

2 years agoFix latent side-effects of respecting field boundaries in text conversion
Po Lu [Tue, 25 Jun 2024 03:37:09 +0000 (11:37 +0800)]
Fix latent side-effects of respecting field boundaries in text conversion

* src/textconv.c (textconv_query, get_extracted_text)
(get_surrounding_text): Restore selected window in addition to
excursion.
(locate_and_save_position_in_field): Restore excursion lest the
current buffer differ from the selected window's contents, to
prevent redisplay from clobbering the current buffer when called
while the current buffer is at variance with the selected
window's contents, as seen with dired-other-window.

2 years ago; * lisp/simple.el (undo-auto--boundaries): Doc fix (bug#71755).
Eli Zaretskii [Mon, 24 Jun 2024 19:21:26 +0000 (22:21 +0300)]
; * lisp/simple.el (undo-auto--boundaries): Doc fix (bug#71755).

2 years ago; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754).
Eli Zaretskii [Mon, 24 Jun 2024 19:17:05 +0000 (22:17 +0300)]
; * lisp/language/cyrillic.el: Delete obsolete commentary (bug#71754).

2 years agoAdd missing builtin package declarations
Jonas Bernoulli [Mon, 24 Jun 2024 18:34:53 +0000 (20:34 +0200)]
Add missing builtin package declarations

* lisp/editorconfig-conf-mode.el:
* lisp/editorconfig-core-handle.el:
* lisp/editorconfig-core.el:
* lisp/editorconfig-fnmatch.el:
* lisp/editorconfig-tools.el: Declare library as part of the
'editorconfig' package.

2 years agoExtend treesitter tests on emba
Michael Albinus [Mon, 24 Jun 2024 18:02:07 +0000 (20:02 +0200)]
Extend treesitter tests on emba

* test/infra/Dockerfile.emba (emacs-tree-sitter): Install c-ashrp
grammar.

* test/infra/Makefile.in (TREE-SITTER-FILES): Add csharp-mode-tests.el.
(tree-sitter-files): Rename from tree-sitter-files-template.
Generate .tree-sitter-files.

* test/infra/gitlab-ci.yml (test-tree-sitter): Extend .tree-sitter-files.

* test/infra/test-jobs.yml: Regenerate.

2 years agoShow entries from key-translation-map in which-key mode
Robert Pluim [Mon, 24 Jun 2024 13:09:00 +0000 (15:09 +0200)]
Show entries from key-translation-map in which-key mode

* lisp/which-key.el (which-key-extra-keymaps): New user option.
(which-key--get-current-bindings): Consult it.

(Bug#71648)

2 years ago* lisp/tab-bar.el (tab-bar-tab-group-face-function): Improve doc (bug#71733).
Juri Linkov [Mon, 24 Jun 2024 16:57:57 +0000 (19:57 +0300)]
* lisp/tab-bar.el (tab-bar-tab-group-face-function): Improve doc (bug#71733).

2 years ago; Fix flymake tests with GCC 14.
Ulrich Müller [Mon, 24 Jun 2024 13:20:26 +0000 (15:20 +0200)]
; Fix flymake tests with GCC 14.

* test/lisp/progmodes/flymake-tests.el (included-c-header-files):
Fix test failure with GCC 14.  (Bug#71749)

2 years agoDon't show char name for multi-char translations
Robert Pluim [Mon, 24 Jun 2024 12:33:30 +0000 (14:33 +0200)]
Don't show char name for multi-char translations

I forgot about shift-translation when implementing this originally, so
this code was being triggered for things like 'C-S-<up>'.

* lisp/help.el (help-key-description): Check if the translation result
is a single char.

(Bug#71411)

2 years agoReset ls-lisp-use-string-collate when ls-lisp-emulation changes
Robert Pluim [Mon, 24 Jun 2024 09:25:30 +0000 (11:25 +0200)]
Reset ls-lisp-use-string-collate when ls-lisp-emulation changes

* lisp/ls-lisp.el (ls-lisp-set-options): Add ls-lisp-use-string-collate
to the list of custom options that are reset when ls-lisp-emulation
changes.

https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00135.html

2 years agoUpdate to Transient v0.7.2-1-gf273c0c8
Jonas Bernoulli [Mon, 24 Jun 2024 11:38:35 +0000 (13:38 +0200)]
Update to Transient v0.7.2-1-gf273c0c8

This fixes two bugs, one of them restoring compatibility with the
version that ships with Emacs 29, making emoji-insert usable again.
The other changes are of cosmetic nature.  The only exception is a new
command, whose creation lead to the discovery of one of the bugs, and
remains unused until a package author actually binds it in a prefix.
I.e., unless someone actually uses this, the risk of a regression is
close to zero, and even if it is used, it can only affect the prefix
that binds it.

2 years ago* doc/misc/calc.texi (Musical Notes): Fix typo.
Andreas Schwab [Tue, 13 Jun 2023 14:00:17 +0000 (16:00 +0200)]
* doc/misc/calc.texi (Musical Notes): Fix typo.

2 years ago; Fix typos
Robert Pluim [Mon, 24 Jun 2024 09:19:28 +0000 (11:19 +0200)]
; Fix typos

* ChangeLog.3: It's "its", not "it's", for the possessive.
* ChangeLog.4: And here.

2 years agoUpdate options that depend on 'which-key-dont-use-unicode'
Philip Kaludercic [Mon, 24 Jun 2024 07:42:20 +0000 (09:42 +0200)]
Update options that depend on 'which-key-dont-use-unicode'

* lisp/which-key.el (which-key-dont-use-unicode): Add a custom setter
that re-evaluates a manual list of options use
'which-key-dont-use-unicode' to determine their default value.

https://lists.gnu.org/archive/html/help-gnu-emacs/2024-06/msg00130.html

2 years ago; Remove debugging message in Completion Preview test
Eshel Yaron [Sun, 23 Jun 2024 20:46:26 +0000 (22:46 +0200)]
; Remove debugging message in Completion Preview test

* test/lisp/completion-preview-tests.el
(completion-preview-complete): Remove leftover debug message.

2 years agoFix omission of updates to child frames on Android
Po Lu [Mon, 24 Jun 2024 04:04:05 +0000 (12:04 +0800)]
Fix omission of updates to child frames on Android

* java/org/gnu/emacs/EmacsView.java (onAttachedFromWindow):
Force a layout cycle rather than report exposure immediately.
(prepareForLayout): Delete function.

* java/org/gnu/emacs/EmacsWindow.java (mapWindow): Remove
redundant calls to prepareForLayout.

* src/androidterm.c (handle_one_android_event): Do not swap
buffers when exposure is registered by a frame only partially
updated.

2 years agoAdd jsdoc support to js-ts-mode
Damien Cassou [Fri, 14 Jun 2024 08:46:42 +0000 (10:46 +0200)]
Add jsdoc support to js-ts-mode

* lisp/progmodes/js.el (js--treesit-font-lock-settings): Add jsdoc
font-lock settings.
(js--treesit-jsdoc-beginning-regexp): New variable to match the
beginning of a jsdoc block.
(js-ts-mode): Add jsdoc support. Save the 'javascript parser to
`treesit-primary-parser'. Configure `treesit-range-settings' to
use a jsdoc parser within a JavaScript file.
(js-ts-language-at-point): New function to return either 'jsdoc or
'javascript depending on where the point is.

2 years ago; Restore inadvertently removed line.
Eli Zaretskii [Sun, 23 Jun 2024 19:22:12 +0000 (22:22 +0300)]
; Restore inadvertently removed line.

2 years ago; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.
Eli Zaretskii [Sun, 23 Jun 2024 19:17:37 +0000 (22:17 +0300)]
; * test/lisp/net/shr-tests.el (shr-test--rendering-check): Use UTF-8.

2 years ago; Don't run new 'shr-test/zoom-image' when built without image support
Jim Porter [Sun, 23 Jun 2024 18:40:30 +0000 (11:40 -0700)]
; Don't run new 'shr-test/zoom-image' when built without image support

* test/lisp/net/shr-tests.el (shr-test/zoom-image): Skip when
'image-types' is unbound.

2 years ago; * admin/release-branch.txt: Update and fix typo.
Eli Zaretskii [Sun, 23 Jun 2024 17:57:26 +0000 (20:57 +0300)]
; * admin/release-branch.txt: Update and fix typo.

2 years ago; Fix typos
Stefan Kangas [Sun, 23 Jun 2024 14:28:31 +0000 (16:28 +0200)]
; Fix typos

2 years agoBackport: Minor changes in tramp-tests.el
Michael Albinus [Sat, 22 Jun 2024 17:52:06 +0000 (19:52 +0200)]
Backport: Minor changes in tramp-tests.el

* test/lisp/net/tramp-tests.el (tramp--test-shell-file-name):
Use connection-local value.
(tramp--test-shell-command-switch): New defun.
(tramp-test28-process-file)
(tramp-test34-explicit-shell-file-name): Use it.
(tramp--test-supports-processes-p): Simplify.
(tramp--test-check-files): Use `tramp-compat-seq-keep'.
(tramp-test45-asynchronous-requests): Don't let-bind `shell-file-name'.
(tramp-test45-asynchronous-requests): Adjust timer.
(tramp-test45-asynchronous-requests): Add another test message.

(cherry picked from commit c95caade15d295fa6cc31d337028faa15142b388)

2 years agoBackport: Tramp: Fix bug#71709, and other minor changes
Michael Albinus [Sat, 22 Jun 2024 17:49:45 +0000 (19:49 +0200)]
Backport: Tramp: Fix bug#71709, and other minor changes

* lisp/net/tramp-message.el (tramp-backtrace): Print also in batch mode.

* lisp/net/tramp.el (tramp-skeleton-file-exists-p): Check for
property only.
(tramp-skeleton-make-process): Don't set `default-directory'.
(tramp-handle-make-process): Set it.  (Bug#71709)

(cherry picked from commit 8456cb9b698dfbfc90af82b3ebcd739fc22be4e4)

2 years agoNew branch emacs-30
Eli Zaretskii [Sun, 23 Jun 2024 10:48:54 +0000 (06:48 -0400)]
New branch emacs-30

* README:
* configure.ac:
* nt/README.W32:
* etc/refcards/ru-refcard.tex:
* msdos/sed2v2.inp:
* lisp/cus-edit.el (customize-changed-options-previous-release):
Cut the emacs-30 release branch.

2 years ago* admin/admin.el: (set-version): Fix regexp for configure.ac.
Eli Zaretskii [Sun, 23 Jun 2024 10:42:29 +0000 (06:42 -0400)]
* admin/admin.el: (set-version): Fix regexp for configure.ac.

2 years agoDisable Ffile_system_info for Android special directories
Po Lu [Sun, 23 Jun 2024 08:41:36 +0000 (16:41 +0800)]
Disable Ffile_system_info for Android special directories

* src/fileio.c (Ffile_system_info): Return Qnil if FILENAME
refers to a special directory.

2 years agoFix a bug in 'switch-to-buffer'
Martin Rudalics [Sun, 23 Jun 2024 08:26:57 +0000 (10:26 +0200)]
Fix a bug in 'switch-to-buffer'

* lisp/window.el (switch-to-buffer): When asked to switch to the
buffer of the selected window,
'switch-to-buffer-obey-display-actions' is non-nil and
'pop-to-buffer' uses the selected window, don't try to restore
window start and point from 'window-prev-buffers' (Bug#71616).

2 years agoFix zooming images in SHR
Jim Porter [Thu, 20 Jun 2024 03:59:59 +0000 (20:59 -0700)]
Fix zooming images in SHR

Previously, for images with no alt-text, the zoomed image wouldn't get
properly inserted.  For images with alt-text, both the zoomed and
unzoomed image would be displayed at once (bug#71666).

* lisp/net/shr.el (shr-sliced-image): New face.
(shr-zoom-image): Reimplement using
'next/previous-single-property-change', and don't bother deleting any of
the text.
(shr-image-fetched): Clean up any overlays when deleting the old region.
(shr-put-image): Ensure we always have a non-empty string to put the
image on.  For sliced images, just use "*", since we'll repeat it, so we
can't preserve the original buffer text exactly anyway.  Apply an
overlay to sliced images to prevent unsightly text decorations.
(shr-tag-img): Move the placeholder space insertion where it should be
and explain what it's doing.

* test/lisp/net/shr-tests.el (shr-test--max-wait-time)
(shr-test-wait-for): New helper functions.
(shr-test/zoom-image): New test.

2 years ago; Doc fix in 'php-ts-mode'.
Eli Zaretskii [Sun, 23 Jun 2024 05:01:28 +0000 (08:01 +0300)]
; Doc fix in 'php-ts-mode'.

* lisp/progmodes/php-ts-mode.el (php-ts-mode-css-fontify-colors):
Doc fix.

2 years agoColorize CSS property value like `css--fontify-region'
Vincenzo Pupillo [Sat, 22 Jun 2024 21:11:17 +0000 (23:11 +0200)]
Colorize CSS property value like `css--fontify-region'

If the value of a property is text representing a CSS color,
it will be fontified such that its background is the color
itself. 'php-ts-mode-css-fontify-colors' can be used to
disable this behaviour.
* lisp/progmodes/php-ts-mode.el (php-ts-mode-css-fontify-colors):
New custom var.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--colorize-css-value):
New function.
* lisp/progmodes/php-ts-mode.el (php-ts-mode): Use the new
function.  (Bug#71724)

2 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sun, 23 Jun 2024 04:57:22 +0000 (07:57 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

2 years ago* configure.ac: Disable kqueue on Haiku.
Po Lu [Sun, 23 Jun 2024 04:52:55 +0000 (12:52 +0800)]
* configure.ac: Disable kqueue on Haiku.

2 years agoFix 'Customize' menu entry for 'php-ts-mode'
Vincenzo Pupillo [Sat, 22 Jun 2024 20:36:54 +0000 (22:36 +0200)]
Fix 'Customize' menu entry for 'php-ts-mode'

* lisp/progmodes/php-ts-mode.el (php-ts-mode-menu):
Replace menu entry with 'php-ts-mode' group.  (Bug#71723)

2 years agoFix compilation on prerelease versions of Haiku
Po Lu [Sun, 23 Jun 2024 04:49:45 +0000 (12:49 +0800)]
Fix compilation on prerelease versions of Haiku

* src/kqueue.c (Fkqueue_add_watch): Don't specify EV_ENABLE
unless it is defined.

2 years agoFix FIXME in comment
Paul Eggert [Sun, 23 Jun 2024 00:42:04 +0000 (20:42 -0400)]
Fix FIXME in comment

* src/timefns.c (decode_float_time): Explain why the code
can use large precision here, removing a FIXME by updating
the containing comment.

2 years agoUpdate SKK-JISYO.L from upstream
Stefan Kangas [Sat, 22 Jun 2024 22:27:04 +0000 (00:27 +0200)]
Update SKK-JISYO.L from upstream

* leim/SKK-DIC/SKK-JISYO.L: Update from
https://raw.githubusercontent.com/skk-dev/dict/master/SKK-JISYO.L

2 years agoUpdate publicsuffix.txt from upstream
Stefan Kangas [Sat, 22 Jun 2024 22:27:02 +0000 (00:27 +0200)]
Update publicsuffix.txt from upstream

* etc/publicsuffix.txt: Update from
https://publicsuffix.org/list/public_suffix_list.dat
dated 2024-06-21 13:05:36 UTC.

2 years agoAdd assignment form as `etc/copyright-assign.txt`
Stefan Kangas [Sat, 22 Jun 2024 22:16:42 +0000 (00:16 +0200)]
Add assignment form as `etc/copyright-assign.txt`

This change was discussed in:
https://lists.gnu.org/r/emacs-devel/2023-12/msg00326.html

* etc/copyright-assign.txt: New file copied from
https://www.gnu.org/s/gnulib/Copyright/request-assign.future
* doc/emacs/trouble.texi (Copyright Assignment):
* etc/TODO: Point to above new file.

2 years ago; Merge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 21:46:46 +0000 (23:46 +0200)]
; Merge from origin/emacs-29

The following commit was skipped:

0f01cb0ebd1 Bump Emacs version to 29.4.50

2 years agoBump Emacs version to 29.4.50
Stefan Kangas [Sat, 22 Jun 2024 21:42:02 +0000 (23:42 +0200)]
Bump Emacs version to 29.4.50

* README:
* configure.ac:
* etc/NEWS:
* msdos/sed2v2.inp:
* nt/README.W32: Bump Emacs version to 29.4.50.

2 years agoFix for grammar change of keyword "virtual" in tree-sitter-cpp
Vincenzo Pupillo [Sat, 22 Jun 2024 14:22:16 +0000 (16:22 +0200)]
Fix for grammar change of keyword "virtual" in tree-sitter-cpp

The new rule works with both the new (>= 0.22.1) and the
old (<= 0.22.0) grammar libraries.

* lisp/progmodes/c-ts-mode.el (c-ts-mode--keywords): Removed
the keyword "virtual".
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
New font lock rule. (Bug#71518)

2 years agoRevert "; * etc/HISTORY: Delete never-released Emacs 28.3."
Stefan Kangas [Sat, 22 Jun 2024 17:25:35 +0000 (19:25 +0200)]
Revert "; * etc/HISTORY: Delete never-released Emacs 28.3."

This reverts commit ea057131220bba504d28812dc8be58007017b029.

Some GNU/Linux distros have offered Emacs 28.3 based on this tag, so
this entry should be kept.

2 years agoUpdate Tramp version (don't merge to master)
Michael Albinus [Fri, 21 Jun 2024 13:41:19 +0000 (15:41 +0200)]
Update Tramp version (don't merge to master)

* lisp/net/trampver.el (customize-package-emacs-version-alist):
Adapt Tramp version integrated in Emacs 29.4.

2 years agoManually merge NEWS.29 from emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:49:14 +0000 (18:49 +0200)]
Manually merge NEWS.29 from emacs-29

* etc/NEWS.29: Manually merge from etc/NEWS on the 'emacs-29' branch.

2 years ago; * etc/HISTORY: Delete never-released Emacs 28.3.
Stefan Kangas [Sat, 22 Jun 2024 16:51:29 +0000 (18:51 +0200)]
; * etc/HISTORY: Delete never-released Emacs 28.3.

2 years agoMerge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:47:20 +0000 (18:47 +0200)]
Merge from origin/emacs-29

fd15d89ec51 Merge remote-tracking branch 'origin/emacs-29' into emacs-29
6a299b3cace Release Emacs 29.4
7f7b28a2500 ; Wayland SECONDARY selection problem

2 years ago; Merge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:47:20 +0000 (18:47 +0200)]
; Merge from origin/emacs-29

The following commits were skipped:

c0bfe429485 List Andrea Corallo as co-maintainer in ack.texi
b3d6880512f * admin/MAINTAINERS: Add myself in (co-)maintainers.

2 years agoMerge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:47:18 +0000 (18:47 +0200)]
Merge from origin/emacs-29

7cc939bf27e ; * lisp/ldefs-boot.el: Regenerated for Emacs 29.4

# Conflicts:
# lisp/ldefs-boot.el

2 years ago; Merge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:47:18 +0000 (18:47 +0200)]
; Merge from origin/emacs-29

The following commit was skipped:

959eacc2a70 Bump Emacs version to 29.4

2 years agoMerge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:44:19 +0000 (18:44 +0200)]
Merge from origin/emacs-29

9a02fce714c Update files for Emacs 29.4
d96c54d3883 * admin/authors.el: Update for Emacs 29.4
fd207432e50 * etc/NEWS: Update for Emacs 29.4
c645e1d8205 org-link-expand-abbrev: Do not evaluate arbitrary unsafe ...

2 years agoReplace literal whitespace with `\s`
Stefan Kangas [Sat, 22 Jun 2024 16:42:06 +0000 (18:42 +0200)]
Replace literal whitespace with `\s`

* test/lisp/vc/log-edit-tests.el (log-edit-fill-entry-confinement)
(log-edit-fill-entry-space-substitution)
(log-edit-fill-entry-initial-wrapping): Replace literal space character
with '\s', to avoid tripping up merge scripts.

2 years ago; Merge from origin/emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:37:49 +0000 (18:37 +0200)]
; Merge from origin/emacs-29

The following commit was skipped:

50a237c4689 Update Tramp version (don't merge to master)

2 years ago; * lisp/editorconfig.el (editorconfig-indentation-alist): Fix :type.
Eli Zaretskii [Sat, 22 Jun 2024 16:39:37 +0000 (19:39 +0300)]
; * lisp/editorconfig.el (editorconfig-indentation-alist): Fix :type.

2 years agoFix non-existing `editorconfig-set-indentation-python-mode`
Stefan Monnier [Sat, 22 Jun 2024 16:26:09 +0000 (12:26 -0400)]
Fix non-existing `editorconfig-set-indentation-python-mode`

* lisp/editorconfig.el (editorconfig--get-indentation-python-mode):
New function.
(editorconfig-indentation-alist): Use it.
(editorconfig-indent-size-vars): Improve docstring.
(editorconfig--default-indent-size-function): Add docstring.

2 years agoMerge remote-tracking branch 'origin/emacs-29' into emacs-29
Stefan Kangas [Sat, 22 Jun 2024 16:21:03 +0000 (18:21 +0200)]
Merge remote-tracking branch 'origin/emacs-29' into emacs-29

2 years agoRelease Emacs 29.4
Stefan Kangas [Sat, 22 Jun 2024 16:18:06 +0000 (18:18 +0200)]
Release Emacs 29.4

* ChangeLog.4:
* etc/HISTORY: Update files for Emacs 29.4.

2 years agoAdd before-save-hook to man page files
Stefan Kangas [Sat, 22 Jun 2024 14:52:18 +0000 (16:52 +0200)]
Add before-save-hook to man page files

* doc/man/ebrowse.1:
* doc/man/emacs.1.in:
* doc/man/emacsclient.1:
* doc/man/etags.1: Add 'before-save-hook' that runs 'time-stamp' to
local variables.

2 years agoUse UTC when generating man page timestamps
Stefan Kangas [Sat, 22 Jun 2024 14:50:12 +0000 (16:50 +0200)]
Use UTC when generating man page timestamps

* doc/man/ebrowse.1:
* doc/man/emacs.1.in:
* doc/man/emacsclient.1:
* doc/man/etags.1: Add 'time-stamp-time-zone' to local variables to
prefer UTC when generating timestamp.

2 years agoMerge from origin/emacs-29
Eli Zaretskii [Sat, 22 Jun 2024 12:23:18 +0000 (08:23 -0400)]
Merge from origin/emacs-29

7f7b28a2500 ; Wayland SECONDARY selection problem

2 years ago; Merge from origin/emacs-29
Eli Zaretskii [Sat, 22 Jun 2024 12:23:18 +0000 (08:23 -0400)]
; Merge from origin/emacs-29

The following commit was skipped:

f3e80dd0f70 * admin/emacs-shell-lib: Backport to Bash 4.4 or older.

2 years agoMerge from origin/emacs-29
Eli Zaretskii [Sat, 22 Jun 2024 12:23:18 +0000 (08:23 -0400)]
Merge from origin/emacs-29

ce85d3811da Fix bug#49289 also for other auth-source backends

2 years ago; * src/xfns.c (unwind_create_frame): Add missing definition.
Eli Zaretskii [Sat, 22 Jun 2024 12:14:19 +0000 (15:14 +0300)]
; * src/xfns.c (unwind_create_frame): Add missing definition.

2 years agoAllow to expand truncated long lines in *Compilation* buffers
Eli Zaretskii [Sat, 22 Jun 2024 10:38:53 +0000 (13:38 +0300)]
Allow to expand truncated long lines in *Compilation* buffers

* lisp/progmodes/compile.el (compilation-button-map): Bind keys
in 'compilation-button-map' to allow expanding the truncated
text.  (Bug#71683)

2 years agoEglot: Fix command execution (bug#71642)
Troy Brown [Thu, 20 Jun 2024 00:14:07 +0000 (20:14 -0400)]
Eglot: Fix command execution (bug#71642)

* lisp/progmodes/eglot.el (eglot--lsp-interface-alist): Add
ExecuteCommandParams interface.
(eglot--execute): Fix handling of Command and CodeAction and add
ExecuteCommandParams.

Copyright-paperwork-exempt: yes

2 years agoSupport for indentation of PHP alternative syntax control structures
Vincenzo Pupillo [Fri, 21 Jun 2024 21:24:33 +0000 (23:24 +0200)]
Support for indentation of PHP alternative syntax control structures

For some control structures, PHP provides an alternative syntax.
A new rule has been added to handle this syntax.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--indent-styles):
New rule for PHP alternative syntax.  (Bug#71710)

2 years ago; Wayland SECONDARY selection problem
Eli Zaretskii [Sat, 22 Jun 2024 09:21:31 +0000 (12:21 +0300)]
; Wayland SECONDARY selection problem

* etc/PROBLEMS: Document problems with SECONDARY selection on
Wayland.  (Bug#71656)

2 years agoPrevent auto-revert when deleting entry (bug#71264)
Manuel Giraud [Mon, 17 Jun 2024 09:06:28 +0000 (11:06 +0200)]
Prevent auto-revert when deleting entry (bug#71264)

* lisp/dired.el (require): Require "autorevert" for
`auto-revert-mode' usage.
(dired-internal-do-deletions): Temporarily prevent auto-revert.

2 years agoFix font lock regex for user defined constant in PHP
Vincenzo Pupillo [Sun, 16 Jun 2024 14:32:53 +0000 (16:32 +0200)]
Fix font lock regex for user defined constant in PHP

The old regex also captured functions with two or more
uppercase characters.  This new regex fixes that issue.
* lisp/progmodes/php-ts-mode.el (php-ts-mode--font-lock-settings):
New regex that match only user-defined constants.  (Bug#71593)

2 years agoMake Compilation mode recognize non-legacy Kotlin/Gradle errors
Rudolf Adamkovič [Thu, 2 May 2024 17:06:11 +0000 (19:06 +0200)]
Make Compilation mode recognize non-legacy Kotlin/Gradle errors

The Compilation mode recognizes Kotlin/Gradle errors but only in
the now legacy format.  The current format, which has been in wide
use for about a year, is not supported.  This change adds support
for the current format.
* etc/compilation.txt: (symbols): Add examples of non-legacy
Kotlin/Gradle warnings and errors.
* lisp/progmodes/compile.el: (compilation-error-regexp-alist-alist):
Rename 'gradle-kotlin' to 'gradle-kotlin-legacy' and add
'grade-kotlin' that matches the errors and warnings outputted by
the current (non-legacy) Kotlin/Gradle.  (Bug#70797)
* test/lisp/progmodes/compile-tests.el
(compile-tests--test-regexps-data): Rename 'gradle-kotlin' to
'gradle-kotlin-legacy' and add two test cases for the newly added,
non-legacy Kotlin/Gradle warnings and errors.

2 years ago; Improve documentation of EditorConfig support
Eli Zaretskii [Sat, 22 Jun 2024 06:01:12 +0000 (09:01 +0300)]
; Improve documentation of EditorConfig support

* doc/emacs/custom.texi (EditorConfig support): Improve wording
and indexing.
* doc/emacs/emacs.texi (Top): Update @detailmenu.

2 years agoList Andrea Corallo as co-maintainer in ack.texi
Stefan Kangas [Sat, 18 May 2024 17:14:21 +0000 (19:14 +0200)]
List Andrea Corallo as co-maintainer in ack.texi

* doc/emacs/ack.texi (Acknowledgments): List Andrea Corallo as
co-maintainer from 29.3 onwards.

2 years ago* admin/MAINTAINERS: Add myself in (co-)maintainers.
Andrea Corallo [Wed, 15 May 2024 17:17:30 +0000 (19:17 +0200)]
* admin/MAINTAINERS: Add myself in (co-)maintainers.

2 years ago; * lisp/ldefs-boot.el: Regenerated for Emacs 29.4
Stefan Kangas [Sat, 22 Jun 2024 00:30:27 +0000 (02:30 +0200)]
; * lisp/ldefs-boot.el: Regenerated for Emacs 29.4

2 years agoBump Emacs version to 29.4
Stefan Kangas [Fri, 21 Jun 2024 23:16:59 +0000 (01:16 +0200)]
Bump Emacs version to 29.4

2 years agoUpdate files for Emacs 29.4
Stefan Kangas [Fri, 21 Jun 2024 23:13:01 +0000 (01:13 +0200)]
Update files for Emacs 29.4

* ChangeLog.4:
* etc/AUTHORS: Update for Emacs 29.4.

2 years ago* admin/authors.el: Update for Emacs 29.4
Stefan Kangas [Fri, 21 Jun 2024 23:06:05 +0000 (01:06 +0200)]
* admin/authors.el: Update for Emacs 29.4

2 years ago* etc/NEWS: Update for Emacs 29.4
Stefan Kangas [Fri, 21 Jun 2024 14:03:20 +0000 (16:03 +0200)]
* etc/NEWS: Update for Emacs 29.4

2 years agoorg-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code
Ihor Radchenko [Fri, 21 Jun 2024 13:45:25 +0000 (15:45 +0200)]
org-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code

* lisp/org/ol.el (org-link-expand-abbrev): Refuse expanding %(...)
link abbrevs that specify unsafe function.  Instead, display a
warning, and do not expand the abbrev.  Clear all the text properties
from the returned link, to avoid any potential vulnerabilities caused
by properties that may contain arbitrary Elisp.

2 years ago* doc/emacs/custom.texi (Directory Variables): Add menu
Stefan Monnier [Fri, 21 Jun 2024 19:54:28 +0000 (15:54 -0400)]
* doc/emacs/custom.texi (Directory Variables): Add menu

2 years agoFix `emacs --geometry` flag on macOS
Stefan Kangas [Fri, 21 Jun 2024 18:04:58 +0000 (20:04 +0200)]
Fix `emacs --geometry` flag on macOS

* lisp/startup.el (command-line-ns-option-alist): Fix --geometry
flag on macOS.  (Bug#71669)